export const stringToColor = (str) => {
  let color = '#'
  for (let i = 0; i < str.length; i++) {
    color += parseInt(str[i].charCodeAt(0), 10).toString(16)
  }
  return color.slice(0, 4)
}